import { $courseCategoryAdd, $courseCategoryDelete, $courseCategoryDetail, $courseCategoryList, $courseCategoryListTree, $courseCategoryUpdate } from "@/apis/piano/courseCategory/courseCategory";
import { courseCategoryAddInterface, courseCategoryListInterface, courseCategoryUpdateInterface } from "@/apis/piano/courseCategory/courseCategory.interface";
import { tableServiceInterface } from "@/common/interface/table.interface";
export default class courseCategoryService implements tableServiceInterface {
  async getTable(e: courseCategoryListInterface): Promise<any> {
    return $courseCategoryList(e);
  }
  deleteMultiple(e: Array<string>): Promise<any> {
    console.log(e);
    return $courseCategoryDelete(e);
  }
  edit(e: courseCategoryUpdateInterface): Promise<any> {
    return $courseCategoryUpdate(e);
  }
  add(e: courseCategoryAddInterface): Promise<any> {
    return $courseCategoryAdd(e);
  }
  detail(e: string): Promise<any> {
    return $courseCategoryDetail(e);
  }
  tree(): Promise<any> {
    return $courseCategoryListTree();
  }
}